negotiator.boaframework.repository
Class BOAagentRepository

java.lang.Object
  extended by negotiator.boaframework.repository.BOAagentRepository

public class BOAagentRepository
extends java.lang.Object

Simple class used to load the repository of decoupled agent components.

Author:
Mark Hendrikx

Method Summary
 void addComponent(BOArepItem newComponent)
           
 java.lang.Object clone()
          Override of clone method to enforce singleton pattern.
 java.util.ArrayList<java.lang.String> getAcceptanceStrategies()
          Method which returns the list of acceptance strategies in the BOA repository.
 java.util.HashMap<java.lang.String,BOArepItem> getAcceptanceStrategiesRepItems()
          Method which returns the list of acceptance strategies in the BOA repository.
 AcceptanceStrategy getAcceptanceStrategy(java.lang.String name)
          Method used to load the acceptance strategy associated with the given name.
 BOArepItem getAcceptanceStrategyRepItem(java.lang.String name)
           
 BOArepItem getBiddingStrategyRepItem(java.lang.String name)
           
static BOAagentRepository getInstance()
           
 int getItemsCount()
           
 java.util.ArrayList<java.lang.String> getOfferingStrategies()
          Method which returns the list of offering strategies in the BOA repository.
 java.util.HashMap<java.lang.String,BOArepItem> getOfferingStrategiesRepItems()
          Method which returns the list of offering strategies in the BOA repository.
 OfferingStrategy getOfferingStrategy(java.lang.String name)
          Method used to load the offering strategy associated with the given name.
 java.util.ArrayList<java.lang.String> getOMStrategies()
          Method which returns the list of opponent model strategies in the BOA repository.
 java.util.HashMap<java.lang.String,BOArepItem> getOMStrategiesRepItems()
          Method which returns the list of opponent model strategies in the BOA repository.
 OMStrategy getOMStrategy(java.lang.String name)
          Method used to load the opponent model strategy associated with the given name.
 OpponentModel getOpponentModel(java.lang.String name)
          Method used to load the opponent model associated with the given name.
 BOArepItem getOpponentModelRepItem(java.lang.String name)
           
 java.util.ArrayList<java.lang.String> getOpponentModels()
          Method which returns the list of opponent models in the BOA repository.
 java.util.HashMap<java.lang.String,BOArepItem> getOpponentModelsRepItems()
          Method which returns the list of opponent models in the BOA repository.
 BOArepItem getOpponentModelStrategyRepItem(java.lang.String name)
           
 void removeComponent(BOArepItem removed)
           
 void saveRepository()
           
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BOAagentRepository getInstance()
Returns:
Singleton instance of the repository loader.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Override of clone method to enforce singleton pattern.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getOfferingStrategies

public java.util.ArrayList<java.lang.String> getOfferingStrategies()
Method which returns the list of offering strategies in the BOA repository.

Returns:
list of offering strategies as a String array.

getOfferingStrategiesRepItems

public java.util.HashMap<java.lang.String,BOArepItem> getOfferingStrategiesRepItems()
Method which returns the list of offering strategies in the BOA repository.

Returns:
list of offering strategies as a map of BOA items.

getAcceptanceStrategies

public java.util.ArrayList<java.lang.String> getAcceptanceStrategies()
Method which returns the list of acceptance strategies in the BOA repository.

Returns:
list of acceptance strategies.

getAcceptanceStrategiesRepItems

public java.util.HashMap<java.lang.String,BOArepItem> getAcceptanceStrategiesRepItems()
Method which returns the list of acceptance strategies in the BOA repository.

Returns:
list of acceptance strategies as a map of BOA items.

getOpponentModels

public java.util.ArrayList<java.lang.String> getOpponentModels()
Method which returns the list of opponent models in the BOA repository.

Returns:
list of opponent models.

getOpponentModelsRepItems

public java.util.HashMap<java.lang.String,BOArepItem> getOpponentModelsRepItems()
Method which returns the list of opponent models in the BOA repository.

Returns:
list of opponent models as a map of BOA items.

getOMStrategies

public java.util.ArrayList<java.lang.String> getOMStrategies()
Method which returns the list of opponent model strategies in the BOA repository.

Returns:
list of opponent model strategies.

getOMStrategiesRepItems

public java.util.HashMap<java.lang.String,BOArepItem> getOMStrategiesRepItems()
Method which returns the list of opponent model strategies in the BOA repository.

Returns:
list of opponent model strategies as a map of BOA items.

getOfferingStrategy

public OfferingStrategy getOfferingStrategy(java.lang.String name)
Method used to load the offering strategy associated with the given name.

Parameters:
name - of the offering strategy to be loaded.
Returns:
offering strategy associated with the name.

getAcceptanceStrategy

public AcceptanceStrategy getAcceptanceStrategy(java.lang.String name)
Method used to load the acceptance strategy associated with the given name.

Parameters:
name - of the acceptance strategy to be loaded.
Returns:
acceptance strategy associated with the name.

getOpponentModel

public OpponentModel getOpponentModel(java.lang.String name)
Method used to load the opponent model associated with the given name.

Parameters:
name - of the opponent model to be loaded.
Returns:
opponent model associated with the name.

getOpponentModelRepItem

public BOArepItem getOpponentModelRepItem(java.lang.String name)

getBiddingStrategyRepItem

public BOArepItem getBiddingStrategyRepItem(java.lang.String name)

getAcceptanceStrategyRepItem

public BOArepItem getAcceptanceStrategyRepItem(java.lang.String name)

getOpponentModelStrategyRepItem

public BOArepItem getOpponentModelStrategyRepItem(java.lang.String name)

getOMStrategy

public OMStrategy getOMStrategy(java.lang.String name)
Method used to load the opponent model strategy associated with the given name.

Parameters:
name - of the opponent model strategy.
Returns:
opponent model strategy associated with the name.

saveRepository

public void saveRepository()

toXML

public java.lang.String toXML()

getItemsCount

public int getItemsCount()

removeComponent

public void removeComponent(BOArepItem removed)

addComponent

public void addComponent(BOArepItem newComponent)